package com.tuhu.server.web.resp;

public class ResCode {

    //正确返回的编码
    public static final int CODE_OK = 0;
    public static final int CODE_ERR_UNKNOWN = 9999;

    /**
     * 1000: 全局切面 token 相关
     */
    //无token，请重新登录
    public static final int ER_1000 = 1000;
    //用户不存在，请重新登录
    public static final int ER_1001 = 1001;
    //token已失效，请重新登录
    public static final int ER_1002 = 1002;
    //登录已失效，请重新登录
    public static final int ER_1003 = 1003;


    /**
     * 10000: 账号相关
     */

    //////-发送注册短信验证码-10000-//////
    //接收验证码的手机号格式错误
    public static final int ER_10000 = 10000;
    //服务器调用发送验证码失败
    public static final int ER_10001 = 10001;
    //验证码保存数据库记录失败
    public static final int ER_10002 = 10002;
    //1分钟内多次请求注册验证码
    public static final int ER_10003 = 10003;
    //此ip今日验证码条数已超限
    public static final int ER_10004 = 10004;
    //此手机号今日验证码条数已超限
    public static final int ER_10005 = 10005;

    //////-登录-10010-//////
    //手机号格式错误
    public static final int ER_10010 = 10010;
    //验证码错误
    public static final int ER_10011 = 10011;
    //此手机号尚未注册
    public static final int ER_10012 = 10012;
    //密码错误
    public static final int ER_10013 = 10013;
    //此账户已被冻结
    public static final int ER_10014 = 10014;
    //检测到更换设备
    public static final int ER_10015 = 10015;
    //此微信号尚未注册
    public static final int ER_10016 = 10016;
    //此QQ号尚未注册
    public static final int ER_10017 = 10017;
    //此设备已被冻结
    public static final int ER_10018 = 10014;

    //////-创建用户-10020-//////
    //手机号格式错误
    public static final int ER_10020 = 10020;
    //验证码错误
    public static final int ER_10021 = 10021;
    //此手机号已注册
    public static final int ER_10022 = 10022;
    //微信号注册时操作数据库失败
    public static final int ER_10023 = 10023;
    //此微信号已注册
    public static final int ER_10024 = 10024;
    //此QQ号已注册
    public static final int ER_10025 = 10025;
    //此设备上已登录过其它QQ，一个设备只允许绑定一个QQ，否则会出现通过无限创建QQ号来盗用本软件的场景
    public static final int ER_10026 = 10026;

    //////-修改用户资料-10030-//////
    //手机号格式错误
    public static final int ER_10030 = 10030;

    //签到失败
    public static final int ER_10031 = 10031;

    /**
     * 20000: 相册相关
     */
    //////-创建相册记录-20000-//////
    //写入相册记录db失败
    public static final int ER_20000 = 20000;
    //////-删除相册记录-20010-//////
    //此条相册记录不存在
    public static final int ER_20010 = 20010;

    /**
     * 30000: 宝宝相关
     */
    //////-创建宝宝-30000-//////
    //写入宝宝记录db失败
    public static final int ER_30000 = 30000;
    //////-获取宝宝-30010-//////
    //获取宝宝记录失败
    public static final int ER_30010 = 30010;
    //////-关注宝宝-30020-//////
    //查询关注的宝宝信息失败
    public static final int ER_30020 = 30020;
    //重复关注
    public static final int ER_30021 = 30021;
    //创建关注关系失败
    public static final int ER_30022 = 30022;
    //关注的宝宝已被删除
    public static final int ER_30023 = 30023;
    //关注的宝宝已被冻结
    public static final int ER_30024 = 30024;
    //////-修改宝宝资料-30030-//////
    //当前用户不是这个宝宝的亲友，无权操作
    public static final int ER_30030 = 30030;
    //修改宝宝资料，操作数据库失败
    public static final int ER_30031 = 30031;
    //置顶宝宝失败，操作数据库失败
    public static final int ER_30032 = 30032;
    //删除宝宝失败，操作数据库失败
    public static final int ER_30033 = 30033;

    /**
     * 40000: 会员相关
     */
    //////-创建支付宝订单-40000-//////
    //获取支付宝订单信息失败
    public static final int ER_40000 = 40000;
    //订单支付通知处理失败
    public static final int ER_40001 = 40001;
    //没有查询到订单所指定的会员类型
    public static final int ER_40002 = 40002;
    //订单所指定的会员类型已下架
    public static final int ER_40003 = 40003;
    //支付宝异步通知验签失败
    public static final int ER_40004 = 40004;

    //////-查询会员种类信息-40010-//////
    //暂无有效的会员类型
    public static final int ER_40010 = 40010;

    //////-创建微信订单-40030-//////
    //创建微信订单失败
    public static final int ER_40030 = 40030;
    //微信支付异步通知处理失败
    public static final int ER_40031 = 40031;
    //微信支付异步通知处理失败，原因：此用户已被冻结
    public static final int ER_40032 = 40032;


    /**
     * 50000: 用户资料相关
     */
    //////-提交反馈-50000-//////
    //反馈写入数据库失败
    public static final int ER_50000 = 50000;


    /**
     * 60000: 社交相关
     */
    //////-社交-60000-//////
    //评论失败
    public static final int ER_60000 = 60000;


    /**
     * 70000: 模拟相关
     */
    //////-检查模拟权限-70000-//////
    //检查权限失败，无有效权限记录
    public static final int ER_70100 = 70100;
    //会员已到期
    public static final int ER_70101 = 70101;
    //免费体验到期，但可以通过分享来增加体验
    public static final int ER_70102 = 70102;
    //旧版本已停止服务
    public static final int ER_70103 = 70103;

    //////-以旧换新-70010-//////
    //旧的用户id不存在
    public static final int ER_70010 = 70010;
    //新app的游客记录还未创建完成
    public static final int ER_70011 = 70011;
    //用户还未登录
    public static final int ER_70012 = 70012;
    //此旧版本用户并不是会员，无法兑换
    public static final int ER_70013 = 70013;
    //兑换操作失败
    public static final int ER_70014 = 70014;
    //此用户id的会员已过期
    public static final int ER_70015 = 70015;


    /**
     * 80000: 分享领取相关
     */
    //////-分享成功后请求奖励体验期-80000-//////
    //判断奖励的条件失败
    public static final int ER_80000 = 80000;
    public static final int ER_80001 = 80001;


    /**
     * 90000: 收藏相关
     */
    //////-发起收藏-90000-//////
    //收藏失败
    public static final int ER_90000 = 90000;
    //////-收藏列表-90010-//////
    //获取收藏记录失败
    public static final int ER_90010 = 90010;


    /**
     * 100010: 游戏相关
     */
    public static final int ER_100010 = 100010;
    public static final int ER_100011 = 100011;
    public static final int ER_100012 = 100012;

    public static final int ER_100020 = 100020;






}
